    #Makefile
    
    CC = gcc
    CFLAGS = -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -Wall
    
    all: calcpi dummysort dummysort-threaded
 
    calcpi:
	$(CC) $(CFLAGS) as1_t1/calcpi.c -pthread -lm -o calcpi

    dummysort: object
	$(CC) $(CFLAGS) as1_t2/dummysort.c as1_t2.o -o dummysort
    
    dummysort-threaded: object
	$(CC) $(CFLAGS) -pthread as1_t3/dummysort-threaded.c as1_t2.o -o dummysort-threaded
 
    object:
	$(CC) $(CFLAGS) as1_t2/as1_t2.c -c
 
    clean:
	rm -f calcpi dummysort dummysort-threaded as1_t2.o
